package com.ruoyi.mhrb.cases.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mhrb.cases.mapper.MhrbCaseClassificationMapper;
import com.ruoyi.mhrb.cases.domain.MhrbCaseClassification;
import com.ruoyi.mhrb.cases.service.IMhrbCaseClassificationService;

/**
 * 案例分类Service业务层处理
 * 
 * @author jhrb
 * @date 2024-11-26
 */
@Service
public class MhrbCaseClassificationServiceImpl implements IMhrbCaseClassificationService 
{
    @Autowired
    private MhrbCaseClassificationMapper mhrbCaseClassificationMapper;

    /**
     * 查询案例分类
     * 
     * @param caseId 案例分类主键
     * @return 案例分类
     */
    @Override
    public MhrbCaseClassification selectMhrbCaseClassificationByCaseId(Long caseId)
    {
        return mhrbCaseClassificationMapper.selectMhrbCaseClassificationByCaseId(caseId);
    }

    /**
     * 查询案例分类列表
     * 
     * @param mhrbCaseClassification 案例分类
     * @return 案例分类
     */
    @Override
    public List<MhrbCaseClassification> selectMhrbCaseClassificationList(MhrbCaseClassification mhrbCaseClassification)
    {
        return mhrbCaseClassificationMapper.selectMhrbCaseClassificationList(mhrbCaseClassification);
    }

    /**
     * 新增案例分类
     * 
     * @param mhrbCaseClassification 案例分类
     * @return 结果
     */
    @Override
    public int insertMhrbCaseClassification(MhrbCaseClassification mhrbCaseClassification)
    {
        return mhrbCaseClassificationMapper.insertMhrbCaseClassification(mhrbCaseClassification);
    }

    /**
     * 修改案例分类
     * 
     * @param mhrbCaseClassification 案例分类
     * @return 结果
     */
    @Override
    public int updateMhrbCaseClassification(MhrbCaseClassification mhrbCaseClassification)
    {
        return mhrbCaseClassificationMapper.updateMhrbCaseClassification(mhrbCaseClassification);
    }

    /**
     * 批量删除案例分类
     * 
     * @param caseIds 需要删除的案例分类主键
     * @return 结果
     */
    @Override
    public int deleteMhrbCaseClassificationByCaseIds(Long[] caseIds)
    {
        return mhrbCaseClassificationMapper.deleteMhrbCaseClassificationByCaseIds(caseIds);
    }

    /**
     * 删除案例分类信息
     * 
     * @param caseId 案例分类主键
     * @return 结果
     */
    @Override
    public int deleteMhrbCaseClassificationByCaseId(Long caseId)
    {
        return mhrbCaseClassificationMapper.deleteMhrbCaseClassificationByCaseId(caseId);
    }
}
